package intelligentcity.model;


public class WeightedPoint extends Point {
    
    private int weight;

    public WeightedPoint(int x, int y) {
        super(x, y);
        setWeight(1);
    }

    public WeightedPoint(Point point) {
        this(point.getX(), point.getY());
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
    
    @Override
    public String toString() {
        return "(" + x + ", " + y  + ", " + weight + ")";
    }
}
